home *** CD-ROM | disk | FTP | other *** search
- /* PredatorPreyData.h -- application-specific data management */
-
- #ifndef __C14D__
- #define __C14D__
-
- /* Define the creator type and file type for your application. */
-
- #define kSignature 'INRS'
- #define kFileType 'INRP'
- #define lFileType 'INRC'
- #define mFileType 'TEXT'
-
-
- /* Define any appropriate data structures for your application. */
- /* Add any needed fields to Global's WinInfoRec so that each window */
- /* can have its own set of data. Your functions will use "cur->" */
- /* to access the data. Here, in the interface section, you should */
- /* define only those types which are intended to be visible to */
- /* modules outside this one. Later, in the implementation section, */
- /* you can define additional "private" data structures. */
-
- typedef struct {
- short data;
- } YourStuff;
-
- /*----------*/
- /* Open, Close, Read, Write, Init, and Dispose are called by the */
- /* AppMaker-generated FileM module to do application-specific file accessing. */
-
- void C14Data_seg (void);
-
- Boolean OpenAppFile (short vRefNum,
- Str255 fName,
- short *fRefNum);
- void CloseAppFile (short fRefNum);
- void ReadAppFile (short fRefNum);
- void WriteAppFile (short type, short fRefNum);
- void InitAppData (void);
- void InitMapData (Str255 *fName, short refNum, short qRefNum);
- void DisposeAppData (void);
- void ErrorAlert (char *p0);
-
- /* These functions are for accessing your data as logical chunks. */
- /* They are just models for your own accessor functions; */
- /* they aren't called by any AppMaker-generated code. */
- /* Replace them with whatever is suitable for your application. */
-
- void AddStuff (YourStuff *stuff);
- void DeleteStuff (void);
- Boolean GetStuff (void);
- short YesNoCancel (char *thePrompt,
- short theDefault);
-
- #endif /* __C14D__ */